﻿namespace Code.Data
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;

    /// <summary>
    /// Summary description for Question
    /// </summary>
    public class Question
    {
        #region Constructor

        /// <summary>
        /// Initializes a new instance of the Question class.
        /// </summary>
        public Question()
        {
            this.Options = new string[5];
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the question Id.
        /// </summary>
        public int Id
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the text of the question.
        /// </summary>
        public string Text
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the text of the options.
        /// </summary>
        public string[] Options
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the index of the right answer.
        /// </summary>
        public int Answer
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the question value.
        /// </summary>
        public double Value
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the link to the complementer material of the question.
        /// </summary>
        public string Link
        {
            get;
            set;
        }
        #endregion
    }
}